package com.client.mapper;

import com.Emplyment.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper {

    /**
     * 查询所有公司数据
     */
    @Select("select * from article order by collect_number desc,updateTime desc limit 9")
    List<Article> getAllEmplyee();

    /**
     * 根据id查询公司数据
     *
     */
    @Select("select * from article where id = #{id}")
    Article getEmplyeeById(int id);
}
